package com.SpringBoot.brand.mapper;

import com.SpringBoot.brand.pojo.Brand;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 品牌表 Mapper 接口
 * </p>
 *
 * @author bxk
 * @since 2025-09-15
 */
public interface BrandMapper extends BaseMapper<Brand> {
    List<Brand> selectAll(@Param("start") Integer start,
                          @Param("pageSize") Integer pageSize);
    Brand selectById(@Param("brandId") Integer brandId);
    void addBrand(Brand brand);
    void updateBrand(Brand brand);
    void deleteById(@Param("brandId") Integer brandId,
                    @Param("status") Integer status);
    List<Brand> selectByNameLike(@Param("name") String name);
    Brand selectByName(@Param("name") String name);
    List<String> selectBrandName();


    Integer count();
}
